# -*- coding:utf-8 -*-
# created by jinss

import requests

query = input("输入一个你喜欢的明星:")
url = f'https://www.sogou.com/web?query={query}'
h = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36"
}
resp = requests.get(url, headers=h)
print(resp)
print(resp.text)
# 关掉resp
resp.close()